package com.sokal.easycare.modules.product.entity.product;

import org.hibernate.validator.constraints.Length;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.sokal.easycare.common.persistence.FileEntity;

/**
 * 产品Entity
 * 
 * @author liliangdong
 * @version 2017-03-20
 */
public class ProProductFile extends FileEntity<ProProductFile> {

	private static final long serialVersionUID = 1L;
	private ProProduct proProduct; // 产品 父类

	private String fastdfs_file_url;

	public ProProductFile() {
		super();
	}

	public ProProductFile(String id) {
		super(id);
	}

	public ProProductFile(ProProduct proProduct) {
		this.proProduct = proProduct;
	}

	@JsonIgnore
	@Length(min = 0, max = 64, message = "产品长度必须介于 0 和 64 之间")
	public ProProduct getProProduct() {
		return proProduct;
	}

	public void setProProduct(ProProduct proProduct) {
		this.proProduct = proProduct;
	}

	public String getFastdfs_file_url() {
		return fastdfs_file_url;
	}

	public void setFastdfs_file_url(String fastdfs_file_url) {
		this.fastdfs_file_url = fastdfs_file_url;
	}

}